package com.gegewa.topic.jdata.sameagain;

import java.util.*;

public class ForecastUser {

    public List<String> getUserIdList(Map<String, Integer> userIdHistoryMap) {
        List<String> maxWeightUserIdList = Utils.getMaxWeightKeyList(userIdHistoryMap, 12000);
        return maxWeightUserIdList;
    }

    public String getSkuId(Map<String, Integer> skuIdHistoryMap) {
        return getMaxWeightSkuId(skuIdHistoryMap);
//        return getSkuIdList(skuIdHistoryMap).get(1);
//        return getSkuIdList(skuIdHistoryMap).get(2);
    }

    private List<String> getSkuIdList(Map<String, Integer> skuIdHistoryMap) {
        List<String> maxWeightSkuIdList = Utils.getMaxWeightKeyList(skuIdHistoryMap, 3);
        return maxWeightSkuIdList;
    }

    private String getMaxWeightSkuId(Map<String, Integer> skuIdHistoryMap) {
        List<String> maxWeightSkuIdList = Utils.getMaxWeightKeyList(skuIdHistoryMap);
        return maxWeightSkuIdList.get(0);
    }

}
